home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: Essential Home & Business / PC-SIG - Essential Home and Business Collection.iso / 22 / 9 / 8 / E_INSTAL.BAT next >
DOS Batch File  |  1990-02-22  |  6KB  |  142 lines

  1. echo off
  2. rem
  3. rem  E_INSTAL.BAT for The States
  4. rem
  5. cls
  6. if x%1==x goto di-rections
  7. if x%2==x goto di-rections
  8. if not exist %1EXPL_B.EXE goto error
  9. if not exist %1EXPL_A.EXE goto error
  10. if not exist %1E_README.1ST goto error
  11. if %2==b: goto small-disk
  12. if %2==B: goto small-disk
  13. goto big-disk
  14. rem Display Install help if drive data are wrong
  15. :di-rections
  16. echo   ╒════════════════════════╗       ╔════════════════════════════════════╕
  17. echo   │ Installation Procedure ║       ║ Syntax: INSTALL drive1:  drive2:   │
  18. echo   ├────────────────────────╨───────╨────────────────────────────────────┤
  19. echo   │ The Install procedure must be from one drive to another.            │
  20. echo   │ The distribution disk must be placed in drive1.  The Install        │
  21. echo   │ program will expand the files to drive2.                            │
  22. echo   ╞═════════════════════════════════════════════════════════════════════╡
  23. echo   │ If you use a Dual Floppy 360k system you will need to prepare two   │
  24. echo   │ formatted diskettes.  Label one of the disk EXPL A and the          │
  25. echo   │ EXPL  B.  When ready place the distribution disk in drive A:        │
  26. echo   │ type ....  INSTALL A: B:                                            │
  27. ECHO   ╞═════════════════════════════════════════════════════════════════════╡
  28. echo   │ For a Hard Disk or a 720k+ system you will require at least 700K    │
  29. echo   │ for the subdirectory \EXPL that will be created.  When ready place  │
  30. echo   │ the distribution disk in drive A: (or B:) and type "from" - "to":   │
  31. echo   │    INSTALL A: C: (program material from A: to hard disk C:)  or     │
  32. echo   │    INSTALL B: C: (program material from B: to hard disk C:)  or     │
  33. echo   │    INSTALL A: B: (program material from A: to 360 or 720K+ disk B:) │
  34. echo   ╞═════════════════════════════════════════════════════════════════════╡
  35. echo   │ NOTE:  The INSTALL batch file will supply supplemental instructions.│
  36. echo   ╘═════════════════════════════════════════════════════════════════════╛
  37. pause
  38. cls
  39. goto exit-bat
  40. rem *** routine for hard disk installation procedure ***
  41. :big-disk
  42. cls
  43. echo   ╒══════════════════════════════════════════════════════════╕
  44. echo   │ You have chosen to install the EXPL files                │
  45. echo   │ from drive "%1" to drive "%2" fixed disk.                │
  46. echo   ├──────────────────────────────────────────────────────────┤
  47. echo   │ Remember, the Destination drive %2 must have 700K free.  │
  48. echo   ├──────────────────────────────────────────────────────────┤
  49. echo   │ If you wish to change your mind press "CTRL BREAK" now.  │
  50. echo   ├──────────────────────────────────────────────────────────┤
  51. echo   │ Otherwise ....                                           │
  52. echo   ╘══════════════════════════════════════════════════════════╛
  53. echo:
  54. pause
  55. %2
  56. cls
  57. echo      ┌──────────────────────────────────────┐
  58. echo      │   Creating \EXPL directory on "%2".  │
  59. echo      └──────────────────────────────────────┘
  60. cd \
  61. md EXPL
  62. cd \EXPL
  63. echo      ┌────────────────────────────────────────┐
  64. echo      │   Extracting files .................   │
  65. echo      │   This may take a few moments....      │
  66. echo      └────────────────────────────────────────┘
  67. COPY %1E_README.1st %2
  68. %1EXPL_A
  69. %1EXPL_B
  70. dir /w %2
  71. pause
  72. goto done
  73. rem
  74. rem *** Installation procedure for 360K - 720k+ diskette ***
  75. rem
  76. :small-disk
  77. cls
  78. echo  ╔══════════╦═════════════════════════════════════════════════════════╗
  79. echo  ║  FLOPPY  ║ It is assumed you have chosen to install the files      ║
  80. echo  ║  INSTALL ║ from Drive A: to a 360K or 720k+ disk on Drive B:       ║
  81. echo  ╠══════════╩═════════════════════════════════════════════════════════╣
  82. echo  ║  Remember - you should have diskettes formatted and prepared       ║
  83. echo  ║  labeled EXPL-A (& EXPL-B).  Press CTRL-BREAK if not ready, else   ║
  84. echo  ╠════════════════════════════════════════════════════════════════════╣
  85. echo  ║  Put distribution disk in drive A: & Disk EXPL-A in Drive B: &  .. ║
  86. echo  ╚════════════════════════════════════════════════════════════════════╝
  87. echo:
  88. pause
  89. cls
  90. echo   ┌────────────────────────────────────────┐
  91. echo   │ Extracting QUIZEXPL & TEST files ....  │
  92. echo   │ This may take a few moments .........  │
  93. echo   └────────────────────────────────────────┘
  94. %2
  95. COPY %1E_README.1ST %2
  96. %1pres_A
  97. dir /w %2
  98. pause
  99. cls
  100. echo  ╔═══════════════════════════════════════════════════════════════╗
  101. echo  ║  If a 360k disk:  Remove EXPL-A disk from drive B:            ║
  102. echo  ║                   Replace it with the EXPL-B disk,  or   ...  ║
  103. echo  ║===============================================================║
  104. echo  ║  If a 720k+ disk: No need to remove the disk. Just .........  ║
  105. echo  ╚═══════════════════════════════════════════════════════════════╝
  106. echo:
  107. pause
  108. echo   ┌────────────────────────────────────────┐
  109. echo   │ Extracting HISTORY files.              │
  110. echo   │ This may take a few moments .........  │
  111. echo   └────────────────────────────────────────┘
  112. %1EXPL_B
  113. dir /w %2
  114. pause
  115. :done
  116. cls
  117. echo      ┌─────────────────────────────────────────────────────────┐
  118. echo      │ BRAVO ... The installation procedure has been complete! │
  119. echo      └─────────────────────────────────────────────────────────┘
  120. echo:
  121. echo:
  122. echo   ╔═════════════════════════════╤═════════════════════════════════╗
  123. echo   ║ The document may be printed.│          : PRINT EXPL.DOC       ║
  124. echo   ║ or listed to the screen.....│by typing : TYPE  EXPL.DOC       ║
  125. echo   ║ The programs may be run.....│          : QUIZEXPL             ║
  126. ECHO   ║ OR .........................│          : READEXPL             ║
  127. echo   ╚═════════════════════════════╧═════════════════════════════════╝
  128. GOTO EXIT-BAT
  129. :ERROR
  130. CLS
  131. echo 
  132. echo 
  133. echo d
  134. echo:
  135. echo       ************************************************************
  136. ECHO       * We have not found the correct files on drive %1. Please  *
  137. echo       * place the distribution disk in drive %1 and start over.  *
  138. echo       ************************************************************
  139. echo 
  140. pause
  141. :exit-bat
  142.